app.service('specificationService',function ($http) {
    this.getSpecList = function () { //Select2-option
        return $http.get('../specification/getSpecList.do');
    }
    this.search = function (page,rows,searchEntity){
        return $http.post('../specification/search.do?pageNum='+page+"&pageSize="+rows,searchEntity);
    }
    this.deleteSpecification  =function (selectIds) {
        return $http.post('../specification/deleteSpecification.do',selectIds);
    }
    this.save = function (entity) {
        return $http.post('../specification/save.do',entity);
    }
    this.findOne = function (id) {
        return $http.get('../specification/findOne.do?id='+id);
    }
});